package cn.laixueit.source.controller;

import cn.laixueit.source.BaseController;
import cn.laixueit.source.api.DataDictInterface;
import cn.laixueit.source.mapper.DataDictMapper;
import cn.laixueit.source.po.TbDataDict;
import cn.laixueit.source.service.DataDictService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author duxiang
 * @date 2024/2/26 16:02
 */
@RestController
public class DataDictController extends BaseController<DataDictService, TbDataDict> implements DataDictInterface {

    @Resource
    private DataDictService dataDictService;

    @PostMapping("/datadictdetail/findDataDictAndDetail")
    public List<TbDataDict> findDataDetail(@RequestBody List<String> codes){
        return dataDictService.findDataDictAndDetail(codes);
    }
}
